package pl.koziolekweb.budzet;

import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.model.IModel;

import pl.koziolekweb.budzet.model.LoginModel;

public class LoginForm extends Form {

	public LoginForm(String id) {
		super(id);
	}

	public LoginForm(String id, IModel model) {
		super(id, model);
	}

	@Override
	protected void onSubmit() {
		WelcomePage welcome = new WelcomePage((LoginModel)getModelObject());
		setResponsePage(welcome);
	}

	private static final long serialVersionUID = 5566945342872389428L;

}
